package com.cuit.washneedshake.controller;

import com.cuit.washneedshake.model.entity.ImportedProvinces;
import com.cuit.washneedshake.service.ImportedProvincesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@RequestMapping("/imported-provinces")
public class ImportedProvincesController {
    @Autowired
    private ImportedProvincesService importedProvincesService;
    @GetMapping("/getImportedProvincesData")
    @ResponseBody
    public HashMap<String, ImportedProvinces> getImportedProvincesData(){
        return  importedProvincesService.getImportedProvincesData();
    }
}




